package com.yj.cmp.sdk.fusioncompute.storage.volume;

import com.yj.cmp.sdk.fusioncompute.storage.volume.dto.CreateVolumeDto;
import com.yj.cmp.sdk.fusioncompute.storage.volume.vo.CreateVolumeVo;
import com.yj.cmp.sdk.fusioncompute.storage.volume.vo.VolumeDetailVo;
import com.yj.cmp.sdk.fusioncompute.storage.volume.vo.VolumeListVo;
import org.springframework.stereotype.Service;
import retrofit2.Call;
import retrofit2.http.*;

import java.util.Map;

/**
 * @author Harvey_Yang
 * @date 2021/8/30 17:57
 */
@Service
public interface FcVolumeService {
    @GET("volumes")
    Call<VolumeListVo> volumeList(@HeaderMap Map<String, Object> headerMap, @QueryMap Map<String, Object> queryParam);

    @GET("volumes/{volumeId}")
    Call<VolumeDetailVo> volumeDetail(@HeaderMap Map<String, Object> headerMap, @Path("volumeId") String volumeId);

    @POST("volumes")
    Call<CreateVolumeVo> createVolume(@HeaderMap Map<String, Object> headerMap, @Body CreateVolumeDto createVolumeDto);
}
